FROM openjdk:17

RUN mkdir -p /userinfo

WORKDIR /userinfo

EXPOSE 8080

ADD userinfo/target/userinfo-1.0-SNAPSHOT.jar ./app.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]

#CMD ["--spring.profiles.active=dev"]
